package com.black.cat.jvm.instructions.stack.pop;


import com.black.cat.jvm.instructions.base.InstructionNoOperands;
import com.black.cat.jvm.rtda.Frame;
import com.black.cat.jvm.rtda.OperandStack;

/**
 * @Author blackcat
 * @create 2021/8/13 15:16
 * @version: 1.0
 * @description:pop指令只能用于弹出int、float等占用一个操作数栈位置的变量。
 */
public class POP extends InstructionNoOperands {

    @Override
    public void execute(Frame frame) {
        OperandStack stack = frame.operandStack();
        stack.popSlot();
    }

}
